package com.yunxi.service.localService.sat;

import com.yunxi.core.service.IServicePlus;
import com.yunxi.core.web.LoginInfo;
import com.yunxi.model.sat.SatCustomerClue;
import com.yunxi.sat.pojo.SatCustomerClueVO;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 客户线索 服务类
 * </p>
 *
 * @author caoYong
 * @since 2019-07-10
 */
public interface SatCustomerClueService extends IServicePlus<SatCustomerClue> {

    void getClue(SatCustomerClueVO satCustomerClueVO, LoginInfo loginInfo)throws Exception;

    void assignClue(SatCustomerClueVO satCustomerClueVO)throws Exception;

    void assignClueToP(SatCustomerClueVO satCustomerClueVO)throws Exception;

    String getUserCodeByName(String userName);

//    void newMess(SatCustomerClue satCustomerClue,String messType) throws Exception;

    Integer todayClueCount(SatCustomerClueVO customerClueVO)throws Exception;

    /**
     * 查询超期线索
     * @return
     */
    List<SatCustomerClue> queryLateClue();

    /**
     * 查询销售经理超期线索
     * @return
     */
    List<SatCustomerClue> queryManagerLateClue();

    String getCustomerNameByNo(SatCustomerClueVO satCustomerClueVO);

    void returnAreaManager(String clueId);

   void updateBatch(Collection<SatCustomerClue> satCustomerClues);

   void setTestDrivePartnerCode(String clueId,String salesConsultantNo) throws Exception;
}
